function T = static_g1_tt(T, y, x, params)
% function T = static_g1_tt(T, y, x, params)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%
% Output:
%   T         [#temp variables by 1]  double   vector of temporary terms
%

assert(length(T) >= 25);

T = bbeffectivedemandmatchirf_order3.static_resid_tt(T, y, x, params);

T(16) = getPowerDeriv(y(1)*T(3)*T(4),(1-params(9))/params(12),1);
T(17) = getPowerDeriv(T(5),params(12)/(1-params(9)),1);
T(18) = getPowerDeriv(T(6)/y(8),1-1/params(12),1);
T(19) = params(8)/2*1/y(10)*2*(T(7)-params(3));
T(20) = getPowerDeriv(y(21)*y(10),params(1),1);
T(21) = params(8)/2*2*(T(7)-params(3))*(-y(9))/(y(10)*y(10));
T(22) = getPowerDeriv(y(27)*y(12),1-params(1),1);
T(23) = y(20)*y(17)*getPowerDeriv(y(14),(-1),1);
T(24) = 1/params(38);
T(25) = getPowerDeriv(y(23),1-params(9),1);

end
